package icu.lookyousmileface.boot_thymeleaf;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.util.RouteMatcher;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.function.RouterFunction;
import org.springframework.web.servlet.function.ServerResponse;
import reactor.core.publisher.Flux;



/**
   * @author gcq
　　* @description: main
　　* @date 2020/12/30 2:49 下午
　　*/
@SpringBootApplication
public class BootThymeleafApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(BootThymeleafApplication.class, args);
        System.out.println(run.containsBean("cWebController"));
    }

    @RestController
    class BootController{
        @GetMapping("/getInfo")
        public Flux<String> getInfo(){
            return Flux.just("Hello,ReactorWeb!Hello,ReactorWeb!");
        }
    }

    public RouterFunction<ServerResponse> helloWorlds(){
        return null;
    }
}
